<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            position: absolute;
            top: 0;
            left: 0;
            /* 
                animation-name: 动画名称;   设置动画名称
                @keyframes 动画名称         设置动画名称的动画效果
                animation-duration         设置动画时间
                animation-delay            设置动画的提前（负数）或者等待时间
                animation-iteration-count  设置动画播放的次数 默认是1， infinite是无数次
                animation-direction        设置动画播放的顺序
                animation-fill-mode        设置元素在动画播放之前和之后的样式
                animation-play-state       设置动画是暂停还是播放

                animation 动画的简写属性
                动画名称和动画时间是必须设置的
                动画最简洁的写法是 animation: 动画名称 动画时间
                                  @keyframes 动画名称  必须设置
            */
            animation-name: dh;
            animation-duration: 3s;
            animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1);
            animation-delay: 1s;
            animation-iteration-count: 1;
            animation-direction: normal;
            /* animation-direction: reverse;
            animation-direction: alternate;
            animation-direction: alternate-reverse; */
            animation-fill-mode: none;
            /* animation-fill-mode: both;
            animation-fill-mode: backwards;
            animation-fill-mode: forwards; */
            animation-play-state: running;

            animation: dh 3s;
        }
        div:hover {
            animation-play-state: paused;
        }
        @keyframes dh{
            from{
                width: 50px;
                height: 50px;
                background-color: aquamarine;
                border-radius: 50%;
            }
            to{
                width: 200px;
                height: 200px;
                background-color: blueviolet;
            } 
        }
        /* @keyframes dh {
            0%{
                width: 50px;
                height: 50px;
                background-color: aquamarine;
                border-radius: 50%;
            }
            25%{
                width: 100px;
                height: 100px;
                background-color: blue;
                top: 0;
                left: 100px;
            }
            50%{
                width: 50px;
                height: 50px;
                background-color: chartreuse;
                border-radius: 50%;
                top: 100px;
                left: 100px;
            }
            75%{
                width: 100px;
                height: 100px;
                background-color: darkorange;
                top: 100px;
                left: 0;
            }
            100%{
                width: 50px;
                height: 50px;
                background-color: fuchsia;
                border-radius: 50%;
                top: 0;
                left: 0;
            }
        } */
    </style>
</head>
<body>
    <div></div>
</body>
</html>